﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

using Twilio.TwilML.BaseTypes;

namespace Twilio.TwilML
{
    public class Redirect : ResponseVerb
    {
        [XmlAttribute("method"), DefaultValue(HttpMethod.Post)]
        public HttpMethod Method { get; set; }

        [XmlText]
        public string Url { get; set; }

        public Redirect() { }
        public Redirect(string url)
        {
            Method = HttpMethod.Post;
            Url = url;
        }
    }
}
